package entities;

import java.io.Serializable;

import javax.persistence.*;

@Entity
@Table(name="ability")
public class Ability implements Serializable {

	@Id
	@Column(name="name")
	private String name;

	public Ability(String name) {
		super();
		this.name = name;
	}
	
	public Ability(){
		
	}

	public String getName() {
		return name;
	}
	
	@Override
	public boolean equals(Object o){
		try{
			if(o == null){
				return false;
			}
			Ability ab = (Ability)o;
			return ab.name.equals(name);
		} catch (ClassCastException e){
			return false;
		}
	}
	
	
}
